home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
arrays.arc
/
ONE-D.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-09-17
|
1KB
|
59 lines
defint a-z
dim cities$(100)
'*** Main program is here
gosub readincities
gosub printoutcities
end
'****************************************************************************
' READINCITIES - get in all the data all at once
readincities:
restore info
read n.cities
for i=1 to n.cities
read cities$(i)
next
return
'****************************************************************************
'****************************************************************************
' PRINTOUTCITIES - then print the array
printoutcities:
locate 1,1
color 14
print "CITY"
color 7
for i=1 to n.cities
print cities$(i)
next
return
'****************************************************************************
info:
data 22
data Acapulco
data Athens
data Beijing
data Bonn
data Cairo
data Copenhagen
data Dublin
data Geneva
data Helsinki
data Jerusalem
data Lima
data Madrid
data Merida
data Monterrey
data Moscow
data Nice
data Paris
data Rome
data Singapore
data Taipei
data Toronto
data Vienna